{layout name="../common/master"/}
<div id="right">

    <div class="panel panel-default col-lg-4">
        <div class="panel-heading">
            <h3 class="panel-title">用户信息</h3>
        </div>
        <div class="panel-body">
            <table class="table table-hover table-bordered">
                <tbody>
                <tr>
                    <th>用户名</th>
                    <td>{$user['userName']}</td>
                </tr>
                <tr>
                    <th>用户信息审核状态</th>
                    {if condition="$user['admin_sms_status'] eq 1"}
                    <td>已通过</td>
                    {elseif condition="$user['admin_sms_status'] eq 2"/}
                    <td>不通过</td>
                    {elseif condition="$user['admin_sms_status'] eq 3"/}
                    <td>无短信</td>
                    {else/}
                    <td>未审核</td>
                    {/if}
                </tr>
                <tr>
                    <th>电话</th>
                    <td>{$user['userPhone']}</td>
                </tr>
                <!--<tr>-->
                <!--<th>firstName</th>-->
                <!--<td>{$user['firstName']}</td>-->
                <!--</tr>-->
                <!--<tr>-->
                <!--<th>lastName</th>-->
                <!--<td>{$user['lastName']}</td>-->
                <!--</tr>-->
                <tr>
                    <th>状态</th>
                    <td>{$user['status']}</td>
                </tr>
                <tr>
                    <th>头像</th>
                    <td>{$user['headImg']}</td>
                </tr>
                <!--<tr>-->
                <!--<th>年龄</th>-->
                <!--<td>{$user['age']}</td>-->
                <!--</tr>-->
                <!--<tr>-->
                <!--<th>性别</th>-->
                <!--<td>{$user['gender']}</td>-->
                <!--</tr>-->
                <!--<tr>-->
                <!--<th>生日</th>-->
                <!--<td>{$user['birthDay']}</td>-->
                <!--</tr>-->
                <!--<tr>-->
                <!--<th>地址</th>-->
                <!--<td>{$user['address']}</td>-->
                <!--</tr>-->
                <!--<tr>-->
                <!--<th>邮箱</th>-->
                <!--<td>{$user['email']}</td>-->
                <!--</tr>-->
                <!--<tr>-->
                <!--<th>银行卡号</th>-->
                <!--<td>{$user['bankCard']}</td>-->
                <!--</tr>-->
                <tr>
                    <th>邀请人</th>
                    <td>{$user['invitor']}</td>
                </tr>
                <tr>
                    <th>注册时间</th>
                    <td>{$user['create_time']}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>



        <div class="panel panel-default col-lg-4">
            <div class="panel-heading">
                <h3 class="panel-title">还款信息</h3>
            </div>
            <div class="panel-body">
                <table class="table table-hover table-bordered">
                    <tbody>
                    <tr>
                        <th>id</th>
                        <td>{$repayInfo['id']}</td>
                    </tr>
                    <tr>
                        <th>还款金额</th>
                        <td>{$repayInfo['repay_money']}</td>
                    </tr>
                    <tr>
                        <th>还款方式</th>
                        <td>{$repayInfo['repay_type']}</td>
                    </tr>
                    <tr>
                        <th>还款状态</th>
                        {if condition="$repayInfo['repay_status'] eq 0"}
                        <td>未还</td>
                        {elseif condition="$repayInfo['repay_status'] eq 1"/}
                        <td>已还</td>
                        {/if}
                    </tr>
                    <tr>
                        <th>还款时间</th>
                        <td>{$repayInfo['create_time']}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>

 <div class="panel panel-default col-lg-4">
        <div class="panel-heading">
            <h3 class="panel-title">借款信息</h3>
        </div>
        <div class="panel-body">
            <table class="table table-hover table-bordered">
                <tbody>
                <tr>
                    <th>用户ID</th>
                    <td>{$userLoan['userID']}</td>
                </tr>
                <tr>
                    <th>用户电话</th>
                    <td>{$userLoan['userPhone']}</td>
                </tr>
                <tr>
                    <th>产品ID</th>
                    <td>{$userLoan['productID']}</td>
                </tr>
                <tr>
                    <th>借款金额</th>
                    <td>{$userLoan['loanAmount']}</td>
                </tr>
                <tr>
                    <th>借款交易ID</th>
                    <td>{$userLoan['transactionID']}</td>
                </tr>
                <tr>
                    <th>借款交易状态</th>
                    <td>
                        {if condition="$userLoan['transactionStatus'] eq 0"}
                        <span style="color: orangered">未产生交易</span>
                        {elseif condition="$userLoan['transactionStatus'] eq 1"/}
                        <span style="color: green">交易成功</span>
                        {elseif condition="$userLoan['transactionStatus'] eq 2"/}
                        <span style="color: red">交易不成功</span>
                        {elseif condition="$userLoan['transactionStatus'] eq 3"/}
                        <span style="color: red">交易中</span>
                        {/if}
                    </td>
                </tr>
                <tr>
                    <th>借款时长</th>
                    <td>{$userLoan['loanRepayPeriod']}</td>
                </tr>
                <tr>
                    <th>管理费</th>
                    <td>{$userLoan['managementFee']}</td>
                </tr>
                <tr>
                    <th>年利率</th>
                    <td>{$userLoan['loanInterestRate']}</td>
                </tr>
                <tr>
                    <th>实际借款金额</th>
                    <td>{$userLoan['actualAmount']}</td>
                </tr>
                <tr>
                    <th>使用的优惠券ID</th>
                    <td>{$userLoan['couponID']}</td>
                </tr>
                <tr>
                    <th>用户借款状态</th>
                    <td>{$userLoan['userStatus']}</td>
                </tr>
                <tr>
                    <th>审核ID</th>
                    <td>{$userLoan['auditProcessID']}</td>
                </tr>
                <tr>
                    <th>审核状态</th>
                    <td>
                        {if condition="$userLoan['auditProcessStatus'] eq 0"}
                        <span style="color: orangered">待审核</span>
                        {elseif condition="$userLoan['auditProcessStatus'] eq 1"/}
                        <span style="color: green">审核通过</span>
                        {elseif condition="$userLoan['auditProcessStatus'] eq 2"/}
                        <span style="color: red">审核不通过</span>
                        {/if}
                    </td>
                </tr>
                <tr>
                    <th>借款提交时间</th>
                    <td>{:date("Y-m-d H:i:s",round($userLoan['loanSubmitTime']/1000))}</td>
                </tr>
                <tr>
                    <th>借款发放时间</th>
                    <td>{:date("Y-m-d H:i:s",round($userLoan['loanArrangedTime']/1000))}</td>
                </tr>
                <tr>
                    <th>还款状态</th>
                    <td>
                        {if condition="$userLoan['loanRepayStatus'] eq 0"}
                        <span style="color: orangered">未产生还款</span>
                        {elseif condition="$userLoan['loanRepayStatus'] eq 1"/}
                        <span style="color: green">待还款</span>
                        {elseif condition="$userLoan['loanRepayStatus'] eq 2"/}
                        <span style="color: red">还款中</span>
                        {elseif condition="$userLoan['loanRepayStatus'] eq 3"/}
                        <span style="color: blue">还款完成</span>
                        {/if}
                    </td>
                </tr>
                <tr>
                    <th>审核费用</th>
                    <td>{$userLoan['auditFee']}</td>
                </tr>
                <tr>
                    <th>总计还款</th>
                    <td>{$userLoan['totalRepay']}</td>
                </tr>
                <tr>
                    <th>逾期费率</th>
                    <td>{$userLoan['overdueRate']}</td>
                </tr>
                <tr>
                    <th>创建时间</th>
                    <td>{$userLoan['createdAt']}</td>
                </tr>

                </tbody>
            </table>
        </div>
    </div>


</div>
